﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using TalentPools.Model;
using TalentPools.DAL;

namespace TalentPools.BLL
{
    public class CustomManager
    {
        public bool DeleteCustom1(int resumeId)
        {
            return new CustomService().DeleteCustom1(resumeId);
        }
        public bool DeleteCustom(int customId)
        {
            return new CustomService().DeleteCustom(customId);
        }
        public custom GetCustomByCustomId(int customId)
        {
            List<custom> list = new CustomService().GetCustomByCustomId(customId);
            if (list.Count == 1)
            {
                return list[0];
            }
            else
            {
                return null;
            }
        }
        /// <summary>
        /// 根据简历Id查询自定义信息
        /// </summary>
        /// <param name="resumeId"></param>
        /// <returns></returns>
        public List<custom> GetCustom(int resumeId)
        {
            return new CustomService().GetCustom(resumeId);
        }
    }
}
